package xyz.chaobei.thread.pool;

import java.util.Date;

/**
 * @copyright (C), 2015-2020
 * @fileName: RunnableTest
 * @author: MRC
 * @date: 2021/2/23 22:36
 * @description:
 */
public class RunnableTest implements Runnable {

    private String name;

    public RunnableTest(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println("Thread name=" + this.name + "start=" + System.currentTimeMillis());
        try {
            Thread.sleep(500);
        } catch (Exception e){

        }
        System.out.println("Thread name=" + this.name + "end=" + System.currentTimeMillis());
    }


}
